package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 投资订单状态
 * @author liaojunjun
 *
 */
@AllArgsConstructor
@Getter
public enum PackageProjectInvestOrderStatusEnum {
	PENDING_PAYMENT ((byte) 0, "待支付"), 
	SUCCESS((byte) 1, "投资成功"), 
	CLOSING ((byte) 2, "订单关闭中"), 
	CANCEL((byte) 3, "投资失败");

	private Byte value;
	private String desc;

	public static PackageProjectInvestOrderStatusEnum enumOf(int value) {
		for (PackageProjectInvestOrderStatusEnum status : values()) {
			if (status.value == value) {
				return status;
			}
		}
		return null;
	}
}
